package com.fescoservice.model;

/**
 * TWorkerLanguageId entity. @author MyEclipse Persistence Tools
 */

public class WorkerLanguageId implements java.io.Serializable {

	// Fields

	private Long workerId;
	private String laguageType;

	// Constructors

	/** default constructor */
	public WorkerLanguageId() {
	}

	/** full constructor */
	public WorkerLanguageId(Long workerId, String laguageType) {
		this.workerId = workerId;
		this.laguageType = laguageType;
	}

	// Property accessors

	public Long getWorkerId() {
		return this.workerId;
	}

	public void setWorkerId(Long workerId) {
		this.workerId = workerId;
	}

	public String getLaguageType() {
		return this.laguageType;
	}

	public void setLaguageType(String laguageType) {
		this.laguageType = laguageType;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WorkerLanguageId))
			return false;
		WorkerLanguageId castOther = (WorkerLanguageId) other;

		return ((this.getWorkerId() == castOther.getWorkerId()) || (this
				.getWorkerId() != null
				&& castOther.getWorkerId() != null && this.getWorkerId()
				.equals(castOther.getWorkerId())))
				&& ((this.getLaguageType() == castOther.getLaguageType()) || (this
						.getLaguageType() != null
						&& castOther.getLaguageType() != null && this
						.getLaguageType().equals(castOther.getLaguageType())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getWorkerId() == null ? 0 : this.getWorkerId().hashCode());
		result = 37
				* result
				+ (getLaguageType() == null ? 0 : this.getLaguageType()
						.hashCode());
		return result;
	}

}